<script type="text/javascript">
	$(document).ready(function(){
			var div_name = "#content_member_list";
			var offset = <?php echo $offset; ?>;
			if(offset > 0){				
				var per_page_index = <?php echo $per_page_index; ?>;
				if(<?php echo count($admin_list);?> == 0){
					offset = offset - per_page_index;
					var embedString = "<?php echo $embedString; ?>";
					$(div_name).load($("#base_url").attr('alt')+'admin/manage_admin/load/'+offset+embedString);
				}
			}
		}
	);
	$(function(){
		convert_paging("#content_member_list",".paging");
	});
</script>
			<?php if(count($admin_list) == 0){ ?>
				<div class="title col0">No registered admin</div>
			<?php }else{ ?>
            
                <div class="title col0">Username</div>
                <div class="title col1">Name</div>
                <div class="title col2">Email</div>
                <div class="title col3">Phone</div>
                <div class="title col4">Last Logged In</div>
                <div class="title col5">Member Since</div>
            
                <!-- perulangan -->
                <?php 
				$i = 0;
				foreach($admin_list as $admin){ 
					$i++;
				?>
                <div class="<?php echo ($i%2==1)?"odd":"even";?>">
                    <div class="col0"><?php echo $admin['username'];?></div>
                    <div class="col1"><?php echo $admin['name'];?></div>
                    <div class="col2"><?php echo $admin['email'];?></div>
                    <div class="col3"><?php echo $admin['phone'];?></div>
                    <div class="col4"><?php echo $admin['last_logged_in'];?></div>
                    <div class="col5"><?php echo $admin['member_since'];?></div>
                    <div class="col6">
                        
                        <a href="<?php echo base_url();?>admin/manage_admin/delete/<?php echo $admin['user_id'];?>" onclick="return confirm('Are you sure want to delete this admin?'); "><img src="<?php echo base_url();?>img/btndelete.png" title="delete" /></a>
                    </div>
                </div>
                <div class="clear"></div>
                <?php } ?>
                <!-- akhir perulangan -->
                <div class="paging"><?php echo $pagination;?></div>
            <?php } ?>